/* загальні стилі */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
}

h1, h2 {
    color: #ffffff;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

section {
    padding: 60px 20px;
}

/* каталог виробів */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background-color: #162447;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
    width: 100%;            /* Картинка розтягнеться на всю ширину картки */
    height: 200px;          /* Фіксована висота, щоб всі картки були рівні */
    object-fit: cover;      /* ОБОВ'ЯЗКОВО: обрізає зайве, щоб картинка не сплющувалась */
    border-radius: 8px;     /* Заокруглення кутів картинки */
    margin-bottom: 15px;    /* Відступ знизу (до тексту або кнопки) */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Легка тінь під картинкою (за бажанням) */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(228, 63, 90, 0.4);
}

.service-card h3 {
    color: #e43f5a;
    font-size: 1.5em;
    margin-top: 0;
}

.price {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
}

/* kitchen table */
.kitchen-gallery {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 700;
}

/* навігація */

header {
    background-color: #162447;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    align-items: center;
}

nav .logo {
   font-size: 1.8em;
    font-weight: 700;
    color: #e43f5a;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e43f5a;
}



/* ========================================= */
/* ЗАГАЛЬНІ СТИЛІ (Десктоп)                  */
/* ========================================= */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
}

h1, h2 {
    color: #ffffff;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

section {
    padding: 60px 20px;
}

/* ========================================= */
/* КАТАЛОГ ВИРОБІВ                           */
/* ========================================= */

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background-color: #162447;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Додаємо це, щоб padding не розширював блок більше ніж треба */
    box-sizing: border-box; 
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(228, 63, 90, 0.4);
}

.service-card h3 {
    color: #e43f5a;
    font-size: 1.5em;
    margin-top: 0;
}

.price {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
}

.kitchen-gallery {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 700;
}

/* ========================================= */
/* НАВІГАЦІЯ                                 */
/* ========================================= */

header {
    background-color: #162447;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background-color: rgba(22, 36, 71, 0.85);
    
    /* Додаємо box-sizing, щоб padding не додавав ширини */
    box-sizing: border-box; 
}

nav {
    display: flex;
    align-items: center;
    /* Додаємо justify-content для простору між лого і меню на ПК */
    justify-content: space-between; 
}

nav .logo {
    font-size: 1.2em;
    font-weight: 700;
    color: #e43f5a;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0; /* Прибираємо стандартні відступи списку */
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e43f5a;
}

/* ========================================= */
/* АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ (до 768px)        */
/* ========================================= */

@media (max-width: 768px) {
    
    /* 1. Налаштування шрифтів */
    h2 {
        font-size: 1.8em; /* Менший заголовок */
        margin-bottom: 30px;
    }

    section {
        padding: 80px 15px 40px 15px; /* Збільшений верхній відступ, бо меню фіксоване */
    }

    /* 2. Адаптація меню */
    header {
        padding: 10px 20px;
    }

    nav {
        flex-direction: column; /* Логотип зверху, посилання знизу */
        gap: 15px;
    }

    nav ul {
        flex-direction: column; /* Стовпчик посилань */
        align-items: center;
        gap: 15px;
    }

    /* 3. Адаптація карток (Services) */
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;       /* Розтягуємо на всю доступну ширину */
        max-width: 360px;  /* Але не ширше ніж 360px */
        padding: 20px;     /* Трохи менші внутрішні відступи */
    }
}
